class ResponseBean {
  String? msg;
  int? code;
  dynamic data;

  bool get isRequestSuccess {
    return code == 200;
  }

  ResponseBean({this.msg, this.code, this.data});

  ResponseBean.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}
